<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns information about the given hash</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.password.html">Password Hashing 函数</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.password-hash.html">password_hash</a></div>
 <div class="up"><a href="ref.password.html">Password Hashing 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.password-get-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">password_get_info</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0)</p><p class="refpurpose"><span class="refname">password_get_info</span> &mdash; <span class="dc-title">Returns information about the given hash</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.password-get-info-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>password_get_info</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hash</code></span>
   )</div>

  <p class="para rdfs-comment">
   When passed in a valid hash created by an algorithm supported by
   <span class="function"><a href="function.password-hash.html" class="function">password_hash()</a></span>, this function will return an array of
   information about that hash.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.password-get-info-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">hash</code></em></dt>

    <dd>

     <p class="para">
      一个由 <span class="function"><a href="function.password-hash.html" class="function">password_hash()</a></span> 创建的散列值。
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.password-get-info-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an associative array with three elements: 
   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara">
       <em>algo</em>, which will match a
       <a href="password.constants.html" class="link">password algorithm constant</a>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <em>algoName</em>, which has the human readable name of the
      algorithm
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <em>options</em>, which includes the options
      provided when calling <span class="function"><a href="function.password-hash.html" class="function">password_hash()</a></span>
     </span>
    </li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.password.html">Password Hashing 函数</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.password-hash.html">password_hash</a></div>
 <div class="up"><a href="ref.password.html">Password Hashing 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
